package com.blue.ocean.controller;

import org.dromara.dynamictp.core.DtpRegistry;
import org.dromara.dynamictp.core.executor.DtpExecutor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.Executor;

@RestController
@RequestMapping("tp")
public class DynamicTpController {
    
    @RequestMapping("/detail")
    private Integer get(){
        DtpExecutor dtpExecutor1 = DtpRegistry.getDtpExecutor("dtpExecutor1");
        return dtpExecutor1.getCorePoolSize();
    }
}
